<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<style type="text/css">
#${noticeId}_form {
margin: 0;
padding: 10px 30px;
}

.${noticeId}_item {
margin-bottom: 5px;
}

.${noticeId}_item label {
display: inline-block;
width: 80px;
}
</style>

<script type="text/javascript" src="/static/commons/admin.js"></script>
<script type="text/javascript" src="resources/js/push.js"></script>
<script type="text/javascript">
var usernoticeTable = 'pushLogDetailPlugin';

$(function() {
	var query = {
		"items": [
			{
				"field": "pageId",
				"value": "${pageId}",
				"tableAlias": "unl"
			}
		]
	}
	initDataGrid('#${noticeId}_grid', 'search/' + usernoticeTable + '.json?init=' + JSON.stringify(query));
	//initDataGrid('#${noticeId}_grid', 'search/' + usernoticeTable + '.json?query=' + query);
});

</script>
<table id="${noticeId}_grid" style="width:700px;height:250px" data-options="toolbar:'#${noticeId}_toolbar'">
    <thead>
        <tr>
        <th data-options="field:'ck'" checkbox="true"></th>
        	<th data-options="field:'id',align:'center'">用户编号</th>
        	<th data-options="field:'noticeId',hidden:true">通知编号</th>
        	<th data-options="field:'loginName',hidden:false">登录名</th>
            <th data-options="field:'userName'">姓名</th>
            <th data-options="field:'cellPhone'">手机号码</th>
            <th data-options="field:'status',formatter:formatReceiveType">接收状态</th>
            <th data-options="field:'acceptTime'">接收时间</th>
        </tr>
    </thead>
</table>
<div id="${noticeId}_toolbar" style="padding:5px;height:auto">
	<div id="${noticeId}_querybar" title="查询条件" class="easyui-panel" data-options="collapsible:true,border:false,onCollapse:resizeNotice(${noticeId}),onExpand:resizeNotice(${noticeId})">
		<table>
			<tr>
				<th style="text-align:right;">手机号码</th>
				<td style="text-align:left;padding-left:0px;padding-right:10px;">
					<input id="${noticeId}_text" style="width:100%" type="text"/>
				</td>
				<td style="padding-left:10px;">
			        <a href="#" class="easyui-linkbutton" iconCls="icon-search" onclick="doSearchUserNotice(${noticeId}, ${pageId})">查询</a>
			        <a href="#" class="easyui-linkbutton" iconCls="icon-cancel" onclick="clearCriteria('#${noticeId}_toolbar')">清除</a>
			        <a href="#" class="easyui-linkbutton" iconCls="icon-large-smartart" onclick="doResend(${noticeId}, ${pageId})">重发</a>
				</td>
			</tr>
		</table>
	</div>
</div>
